package cn.sciento.starter.social.wechat.connection;

import org.springframework.social.oauth2.AccessGrant;

public class WechatAccessGrant extends AccessGrant {
  private static final long serialVersionUID = 6188192404582815582L;
  
  private String openId;
  
  private String unionId;
  
  public WechatAccessGrant(String accessToken, String openId) {
    super(accessToken);
    this.openId = openId;
  }
  
  public WechatAccessGrant(String accessToken, String scope, String refreshToken, Long expiresIn, String openId, String unionId) {
    super(accessToken, scope, refreshToken, expiresIn);
    this.openId = openId;
    this.unionId = unionId;
  }
  
  public String getOpenId() {
    return this.openId;
  }
  
  public String getUnionId() {
    return this.unionId;
  }
}
